﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="expires" content="-1" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/style.css" />
	<script type="text/javascript" src="/site_media/js/script.js"></script>
	<title>Labmin - lista administratorów</title>
</head>
<body>
	<div id="wrap">
		{% include "header.html" %}
		{% if request.session.user %}
			<div id="content-wrap">
				{% include "sidebar.html" %}
				<div id="main">
					<div class="box">
                		<h1>Lista <span class="gray">administratorów</span></h1>
					</div>
					
                    {% include "pagination.html" %}
                    
                    <div class="box">
						<form name="form" action="/delete_admin" method="post">
						<input type="hidden" id="admin_pk_input" name="admin_pk" value="" />
                        <table class="list_table">
                        {% for admin in objects.object_list %}
                            <tr>
                                <td><a href="show_admin/{{admin.pk}}"><b>{{ admin.login }}</b></a></td>
								<td>{{ admin.email }}</td>
								<td><a href="admin_form/{{ admin.pk }}">Edytuj</a></td>
								<td><a href="#" onclick="setHiddenValueAndSubmit('admin_pk_input', '{{admin.pk}}')"> Usuń</a></td>
                            </tr>
                        {% endfor %}
                        </table>
						</form>
                    </div>
					
                    {% include "pagination.html" %}
					
				</div>
			</div>
		{%endif%}
	</div>
	{% include "footer.html" %}
</body>
</html>
